package com.risk.kernel.domain;

import com.risk.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @author: Liwen
 * @createTime: 2024/12/31
 * @description: 测试任务/公共数据库配置
 */
public class TkCommonDbConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 连接名称
     */
    private String connectName;

    /**
     * 数据库类型
     */
    private String dbType;

    /**
     * 连接ip
     */
    private String dbIp;

    private String dbName;


    /**
     * 用户名
     */
    private String dbUser;

    /**
     * 密码
     */
    private String dbPassword;

    /**
     * 端口号
     */
    private String dbPort;

    /**
     * 是否启用
     */
    private Boolean isOpen;

    /**
     * 备注
     */
    private String remark;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getDbName() {
        return dbName;
    }

    public void setConnectName(String connectName) {
        this.connectName = connectName;
    }

    public String getConnectName() {
        return connectName;
    }

    public void setDbType(String dbType) {
        this.dbType = dbType;
    }

    public String getDbType() {
        return dbType;
    }

    public void setDbIp(String dbIp) {
        this.dbIp = dbIp;
    }

    public String getDbIp() {
        return dbIp;
    }


    public void setDbUser(String dbUser) {
        this.dbUser = dbUser;
    }

    public String getDbUser() {
        return dbUser;
    }

    public void setDbPassword(String dbPassword) {
        this.dbPassword = dbPassword;
    }

    public String getDbPassword() {
        return dbPassword;
    }

    public void setDbPort(String dbPort) {
        this.dbPort = dbPort;
    }

    public String getDbPort() {
        return dbPort;
    }

    public void setIsOpen(Boolean isOpen) {
        this.isOpen = isOpen;
    }

    public Boolean getIsOpen() {
        return isOpen;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRemark() {
        return remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("connectName", getConnectName())
                .append("dbType", getDbType())
                .append("dbUser", getDbUser())
                .append("dbPassword", getDbPassword())
                .append("dbPort", getDbPort())
                .append("isOpen", getIsOpen())
                .append("createBy", getCreateBy())
                .append("remark", getRemark())
                .append("dbName", getDbName())
                .toString();
    }

}
